#pragma once
#ifndef FPMATH_H_INCLUDED
#define FPMATH_H_INCLUDED

#include "Fixed.h"

#define SQRT_PASSES 6

namespace FPmath {

const static Fixed PI=3.141592654f;

Fixed abs (const Fixed& f);

Fixed floor (const Fixed& f);
Fixed ceil (const Fixed& f);

Fixed min (const Fixed& a, const Fixed& b);
Fixed max (const Fixed& a, const Fixed& b);

Fixed sqrt(const Fixed& f);
Fixed sqrt2(const Fixed& f);

Fixed exp(const Fixed& base, const Fixed& pow);

Fixed cos(const Fixed& rad);
Fixed sin(const Fixed& rad);
Fixed tan(const Fixed& rad);

Fixed acos(const Fixed& f);
Fixed asin(const Fixed& f);
Fixed atan(const Fixed& f);
Fixed atan2(const Fixed& f1, const Fixed& f2);


}

#endif // FPMATH_H_INCLUDED
